import request from '@/utils/request'

// 获取
export function query(params) {
    return request({
        url: '/strategy-coin/listPage',
        method: 'get',
        params
    })
}

export function getStrategy(params) {
    return request({
        url: '/strategy-coin/enableStrategy',
        method: 'get',
        params
    })
}
  

export function save(data) {
    
    return request({
        // url: '/user/pushStrategy/update',
        url: '/strategy-coin/add',
        method: 'post',
        params: data
    })
}
export function iconUpdata(data) {
    
    return request({
        url: '/strategy-coin/update',
        method: 'post',
        params: data
    })
}

// 修改状态
export function saveStatus(id) {
    return request.get('/strategy-coin/update/status/' + id)
}



export function getDetail(id) {
    return request.get('/strategy-coin/' + id)
}


export function pullList(params) {
    return request({
        url: '/push/config/listPage',
        method: 'get',
        params
    })
}


export function pullAdd(listquery) {
    return request.post('/push/config/save', listquery)
}

export function pullUpdate(listquery) {
    return request.post('/push/config/update', listquery)
}
export function pullBatchUpdate(listquery) {
    return request.post('/push/config/reset', listquery)
}

export function pullDel(listquery) {
    return request.post('/push/config/delete', listquery)
}